package com.diaohw.platform.common.obj.login;

import lombok.Builder;
import lombok.Getter;
import lombok.experimental.Accessors;

/**
 * @author 刁海文
 * @Remark 系统登录用户基本信息
 * @since 2023/7/1 22:20
 */
@Getter
@Accessors(chain = true)
public class LoginUser {
    /**
     * 登录用户主键ID
     */
    private final String loginId;

    /**
     * 登录用户账户
     */
    private final String username;

    /**
     * 用户名称
     */
    private final String nickname;
    /**
     * 用户所属组织机构ID
     */
    private final String departmentId;


    @Builder
    public LoginUser(String loginId, String username, String nickname, String departmentId) {
        this.loginId = loginId;
        this.username = username;
        this.nickname = nickname;
        this.departmentId = departmentId;
    }
}
